import request from '../../utils/request'

/**
 * 根据ID获取报价记录详情
 *
 */
export async function getRecordById({id}) {
    return request(apiPath.mc + "/api/quotation/" + id, {
        method: 'get',
    });
}

/**
 * 删除报价记录
 *
 */
export async function deleteById({id}) {
    return request(apiPath.mc + "/api/quotation/" + id, {
        method: 'DELETE',
    });
}

/**
 * 分页查询报价记录
 *
 */
export async function getListForPage({ cstNo, cstName, transportType, loadingPort, destinationPort, beginTime, endTime, page }) {
	return request(apiPath.mc + "/api/quotation/record", {
		method: 'get',
		data: { cstNo, cstName, transportType, loadingPort, destinationPort, beginTime, endTime, page: page.page, size: page.size }
	});
}